package de.sinnlosimnetz.forum.ws.server;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * <p>
 * Java class for LastPostInfo complex type.
 * <p>
 * The following schema fragment specifies the expected content contained within
 * this class.
 * 
 * <pre>
 * &lt;complexType name="LastPostInfo">
 *   &lt;complexContent>
 *     &lt;extension base="{http://sinnlosimnetz.de/ForumState/}AbstractInfo">
 *       &lt;sequence>
 *         &lt;element name="post" type="{http://sinnlosimnetz.de/ForumState/}Post" maxOccurs="5" minOccurs="5"/>
 *       &lt;/sequence>
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "LastPostInfo", propOrder = { "post" })
public class LastPostInfo extends AbstractInfo
{

	@XmlElement(required = true)
	protected List<Post> post;

	/**
	 * Gets the value of the post property.
	 * <p>
	 * This accessor method returns a reference to the live list, not a
	 * snapshot. Therefore any modification you make to the returned list will
	 * be present inside the JAXB object. This is why there is not a
	 * <CODE>set</CODE> method for the post property.
	 * <p>
	 * For example, to add a new item, do as follows:
	 * 
	 * <pre>
	 * getPost().add(newItem);
	 * </pre>
	 * <p>
	 * Objects of the following type(s) are allowed in the list {@link Post }
	 */
	public List<Post> getPost()
	{
		if (post == null)
		{
			post = new ArrayList<Post>();
		}
		return this.post;
	}

}
